<?php
class Pageley_Serializer_Converter_Boolean implements Pageley_Serializer_Converter {
    
    public function convertIntoFormat($value) {
        return $value ? 1 : 0;
    }
    
    public function convertFromFormat($value) {
        return $value ? true : false;
    }
}